package com.zzh.mvvm.base;

import android.os.Bundle;

import androidx.databinding.ViewDataBinding;

import com.zzh.mvvm.base.vm.BaseToolbarViewModel;
import com.zzh.mvvm.base.vm.BaseViewModel;

/**
 * @date: 2021/9/9 14:23
 * @email: zzh_hz@126.com
 * @QQ: 1299234582
 * @author: zzh
 * @description: activity 基类，封装业务层，BaseViewModel，findViewById ViewBinding，
 */
public abstract class HDefaultViewModelBaseRabbitActivity<VB extends ViewDataBinding> extends BaseRabbitActivity<BaseToolbarViewModel, VB> {
    @Override
    protected BaseToolbarViewModel initViewModel(Bundle savedInstanceState) {
        return createViewModel(this, BaseToolbarViewModel.class);
    }

    @Override
    protected int getBindingActualTypeIndex() {
        return 0;
    }
}
